all: raw

errors.o:Errors/errors.cpp 
	g++ -c Errors/errors.cpp
hw_translate.o:network/hw_translate.cpp
	g++ -c network/hw_translate.cpp
info.o:network/info.cpp
	g++ -c network/info.cpp
multifile.o:network/multifile.cpp
	g++ -c network/multifile.cpp
packet.o:network/packet.cpp
	g++ -c network/packet.cpp
checksum.o:packet_headers/checksum.cpp 
	g++ -c packet_headers/checksum.cpp
flags.o:packet_headers/flags.cpp 
	g++ -c packet_headers/flags.cpp
iphdr.o:packet_headers/iphdr.cpp 
	g++ -c packet_headers/iphdr.cpp
etherhdr.o:packet_headers/etherhdr.cpp
	g++ -c packet_headers/etherhdr.cpp
raw_connection.o: network/raw_connection.cpp
	g++ -c network/raw_connection.cpp
raw_listener.o:network/raw_listener.h network/raw_listener.cpp errors.o packet.o
	g++ -c network/raw_listener.cpp
raw:main.cpp errors.o hw_translate.o info.o multifile.o packet.o checksum.o flags.o iphdr.o etherhdr.o raw_connection.o raw_listener.o
	g++ -o raw main.cpp errors.o hw_translate.o info.o multifile.o packet.o checksum.o flags.o iphdr.o etherhdr.o raw_connection.o raw_listener.o -lpcap


.PHONY:clean
clean:
	-rm *.o
